package projeto.controller;

import projeto.business.LoginBusiness;
import projeto.controller.form.LoginForm;

public class LoginController {

	public boolean login( final LoginForm loginForm ) {
		
		LoginBusiness loginBusiness = new LoginBusiness();
		
		try {
			
			return loginBusiness.login( loginForm.getLogin(), loginForm.getSenha() );
			
		} catch ( Exception e ) {
			
			e.printStackTrace();
		}
		
		return false;		
	}	
}
